package com.xjgc.msibase.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xjgc.msibase.entity.MsiServerRecord;
import org.springframework.scheduling.annotation.Async;

/**
 * 中间库服务记录
 *
 * @author: 小逗号
 * @date: 2023-11-2
 * @description:
 * @since:
 */
public interface IMsiServerRecordService extends IService<MsiServerRecord> {
    /**
     * 查询记录
     *
     * @param record
     * @return
     */
    MsiServerRecord getRecord(MsiServerRecord record);

    /**
     * 添加记录
     *
     * @param record
     * @param requestText
     */
    void addRecord(MsiServerRecord record, String requestText);

    /**
     * 更新响应text
     *
     * @param record
     * @param responseText
     */
    void updateResponse(MsiServerRecord record, String responseText);

    /**
     * 分页查询
     * @param page
     * @param queryAo
     * @return
     */
    IPage<MsiServerRecord> pageList(IPage<MsiServerRecord> page,MsiServerRecord queryAo);

    /**
     * 定时删除
     */
    void deleteTimer();
}
